import Request from "./request.js";

const API = {
    merchantList: "/app/bus/nearby/merchantList",
	merchantInfo: "/app/bus/nearby/merchantInfo",
	merchantType: "/app/bus/nearby/merchantType" 
};

// 查询附近商户列表
export const getMerchantList = (params) => Request.get(API.merchantList, {
    data: params
});

// 查询商户详情
export const getMerchantInfo = (params) => Request.get(API.merchantInfo, {
    data: params
});

// 查询商户类型
export const getMerchantType = () => Request.get(API.merchantType);